# Tanım: Taşınabilir Windows Kitaplığı
# URL: http://www.opalvoip.org
# Paketçi: milisarge
# Gerekler: sdl pulseaudio v4l-utils openldap

isim=ptlib
surum=2.10.11
devir=1

kaynak=(http://downloads.sourceforge.net/opalvoip/ptlib-$surum.tar.bz2
        ptlib-2.10.11-bison_fixes-2.patch
        disable-sslv3.patch
        openssl-1.1.0.patch)

derle() {
cd $isim-$surum
  patch -Np1 -i ../ptlib-2.10.11-bison_fixes-2.patch
  patch -Np1 -i ../disable-sslv3.patch
  patch -Np1 -i ../openssl-1.1.0.patch
  
./configure --prefix=/usr --libdir=/usr/lib \
      --sysconfdir=/etc --localstatedir=/var \
      --enable-opal --enable-plugins \
      --enable-oss --enable-v4l2 \
      --disable-avc --enable-sdl \
      --enable-ipv6 --enable-v4l \
      --disable-dc --disable-odbc \
      --enable-expat --enable-httpforms
make 
make DESTDIR=$PKG install
chmod -v 755 $PKG/usr/lib/libpt.so.2.10.11
}
